package com.dlxj.action;

import com.dlxj.service.WaiTransactService;
import com.dlxj.util.MyJSON;
import com.dlxj.util.PageBean;

public class WaiTransactAction {

	WaiTransactService waiTransactService;
	int pageIndex = 1;
	int pageSize = 5;
	String json;

	public String findList() {
		PageBean bean = waiTransactService.findWaiTransactList(pageIndex,
				pageSize);
		json = MyJSON.toJson(bean).toString();
		return "success";
	}

	public WaiTransactService getWaiTransactService() {
		return waiTransactService;
	}

	public void setWaiTransactService(WaiTransactService waiTransactService) {
		this.waiTransactService = waiTransactService;
	}

	public int getPageIndex() {
		return pageIndex;
	}

	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public String getJson() {
		return json;
	}

	public void setJson(String json) {
		this.json = json;
	}

}
